package com.sqjw.demo.controller;

import com.sqjw.demo.SqjwDemoApplication;
import com.sqjw.demo.manager.TestManager;
import com.sqjw.demo.view.SecondView;
import de.felixroske.jfxsupport.FXMLController;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import org.springframework.beans.factory.annotation.Autowired;

@FXMLController
public class TestController {
    @Autowired
    private TestManager testManager;

    @FXML
    void TestAction(ActionEvent event) {
        testManager.test();
        SqjwDemoApplication.showView(SecondView.class);
    }
}
